

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show Devicegroup</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">Devicegroup List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New Devicegroup</g:link></span>
        </div>
        <div class="body">
            <h1>Show Devicegroup</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>
                            
                            <td valign="top" class="value">${devicegroup.id}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Notify Action:</td>
                            
                            <td valign="top" class="value">${devicegroup.notifyAction}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Speed Units:</td>
                            
                            <td valign="top" class="value">${devicegroup.speedUnits}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Geocoder Mode:</td>
                            
                            <td valign="top" class="value">${devicegroup.geocoderMode}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Date Created:</td>
                            
                            <td valign="top" class="value">${devicegroup.dateCreated}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Description:</td>
                            
                            <td valign="top" class="value">${devicegroup.description}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Devices:</td>
                            
                            <td  valign="top" style="text-align:left;" class="value">
                                <ul>
                                <g:each var="d" in="${devicegroup.devices}">
                                    <li><g:link controller="device" action="show" id="${d.id}"> Device ${d.id}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Geozones:</td>
                            
                            <td  valign="top" style="text-align:left;" class="value">
                                <ul>
                                <g:each var="g" status="q"  in="${devicegroup.geozones}">
                                    <li><g:link controller="geozone" action="show" id="${g.id}">${g.zoneType}: ${g.description} </g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Last Updated:</td>
                            
                            <td valign="top" class="value">${devicegroup.lastUpdated}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Max Dormant Time:</td>
                            
                            <td valign="top" class="value">${devicegroup.maxDormantTime}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Max Speed:</td>
                            
                            <td valign="top" class="value">${devicegroup.maxSpeed}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Min Speed:</td>
                            
                            <td valign="top" class="value">${devicegroup.minSpeed}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Name:</td>
                            
                            <td valign="top" class="value">${devicegroup.name}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Notify Email Or Phone:</td>
                            
                            <td valign="top" class="value">${devicegroup.notifyEmailOrPhone}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">To Notify Dormant Over Max Time:</td>
                            
                            <td valign="top" class="value">${devicegroup.toNotifyDormantOverMaxTime}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">To Notify Overspeed:</td>
                            
                            <td valign="top" class="value">${devicegroup.toNotifyOverspeed}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">User:</td>
                            
                            <td valign="top" class="value"><g:link controller="user" action="show" id="${devicegroup?.user?.id}">${devicegroup?.user}</g:link></td>
                            
                        </tr>

                           <tr>

                    <td>
                        <g:link controller="track" action="trackgroup" id="${devicegroup.id}">See Map</g:link>
                    </td>
                    <td>
                        <ul>                            
                            <li><g:link controller="devicegroup" action="report2XML" id="${devicegroup.id}">Export 2 XML</g:link></li>
                        </ul>
                    </td>

                </tr>

                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${devicegroup?.id}" />
                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
